home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / repeat < prev    next >
Encoding:
Text File  |  2002-10-28  |  713 b   |  22 lines

  1. Synopsis:
  2.    $repeat(<count> <text>)
  3.  
  4. Technical:
  5.    This function returns a string composed of the input text concatenated
  6.    to itself the specified number of times.
  7.  
  8. Practical:
  9.    This function has many potential uses.  For example, it would be used to
  10.    format output from a script such that it is always the width of the
  11.    current window.  This has the side bonus of removing the need to hard-
  12.    code formatting devices (table headers and such), which tend to look
  13.    rather messy in source code.
  14.  
  15. Returns:
  16.    input string repeated count times
  17.  
  18. Examples:
  19.    $repeat(5 hello)                   returns "hellohellohellohellohello"
  20.    $repeat(5  )                       returns "     "  (spaces)
  21.  
  22.